using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class ThrowBottleRequest : GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<ThrowBottleRequest, ThrowBottleRequest.Builder>
		{
			private bool resultIsReadOnly;
			private ThrowBottleRequest result;
			protected override ThrowBottleRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override ThrowBottleRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override ThrowBottleRequest DefaultInstanceForType
			{
				get
				{
					return ThrowBottleRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public int MsgType
			{
				get
				{
					return this.result.MsgType;
				}
				set
				{
					this.SetMsgType(value);
				}
			}
			public int BottleType
			{
				get
				{
					return this.result.BottleType;
				}
				set
				{
					this.SetBottleType(value);
				}
			}
			public SKBuiltinBuffer_t Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public int StartPos
			{
				get
				{
					return this.result.StartPos;
				}
				set
				{
					this.SetStartPos(value);
				}
			}
			public int TotalLen
			{
				get
				{
					return this.result.TotalLen;
				}
				set
				{
					this.SetTotalLen(value);
				}
			}
			public string ClientID
			{
				get
				{
					return this.result.ClientID;
				}
				set
				{
					this.SetClientID(value);
				}
			}
			public uint VoiceLength
			{
				get
				{
					return this.result.VoiceLength;
				}
				set
				{
					this.SetVoiceLength(value);
				}
			}
			public Builder()
			{
				this.result = ThrowBottleRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(ThrowBottleRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private ThrowBottleRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					ThrowBottleRequest other = this.result;
					this.result = new ThrowBottleRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override ThrowBottleRequest.Builder Clear()
			{
				this.result = ThrowBottleRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override ThrowBottleRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new ThrowBottleRequest.Builder(this.result);
				}
				return new ThrowBottleRequest.Builder().MergeFrom(this.result);
			}
			public override ThrowBottleRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override ThrowBottleRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is ThrowBottleRequest)
				{
					return this.MergeFrom((ThrowBottleRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override ThrowBottleRequest.Builder MergeFrom(ThrowBottleRequest other)
			{
				return this;
			}
			public override ThrowBottleRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override ThrowBottleRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(ThrowBottleRequest._throwBottleRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = ThrowBottleRequest._throwBottleRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 24u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								BaseRequest.Builder builder = BaseRequest.CreateBuilder();
								if (this.result.hasBaseRequest)
								{
									builder.MergeFrom(this.BaseRequest);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.BaseRequest = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 16u)
							{
								this.result.hasMsgType = input.ReadInt32(ref this.result.msgType_);
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasBottleType = input.ReadInt32(ref this.result.bottleType_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 40u)
						{
							if (num3 == 34u)
							{
								SKBuiltinBuffer_t.Builder builder2 = SKBuiltinBuffer_t.CreateBuilder();
								if (this.result.hasContent)
								{
									builder2.MergeFrom(this.Content);
								}
								input.ReadMessage(builder2, extensionRegistry);
								this.Content = builder2.BuildPartial();
								continue;
							}
							if (num3 == 40u)
							{
								this.result.hasStartPos = input.ReadInt32(ref this.result.startPos_);
								continue;
							}
						}
						else
						{
							if (num3 == 48u)
							{
								this.result.hasTotalLen = input.ReadInt32(ref this.result.totalLen_);
								continue;
							}
							if (num3 == 58u)
							{
								this.result.hasClientID = input.ReadString(ref this.result.clientID_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasVoiceLength = input.ReadUInt32(ref this.result.voiceLength_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public ThrowBottleRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public ThrowBottleRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public ThrowBottleRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public ThrowBottleRequest.Builder SetMsgType(int value)
			{
				this.PrepareBuilder();
				this.result.hasMsgType = true;
				this.result.msgType_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder ClearMsgType()
			{
				this.PrepareBuilder();
				this.result.hasMsgType = false;
				this.result.msgType_ = 0;
				return this;
			}
			public ThrowBottleRequest.Builder SetBottleType(int value)
			{
				this.PrepareBuilder();
				this.result.hasBottleType = true;
				this.result.bottleType_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder ClearBottleType()
			{
				this.PrepareBuilder();
				this.result.hasBottleType = false;
				this.result.bottleType_ = 0;
				return this;
			}
			public ThrowBottleRequest.Builder SetContent(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder SetContent(SKBuiltinBuffer_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = builderForValue.Build();
				return this;
			}
			public ThrowBottleRequest.Builder MergeContent(SKBuiltinBuffer_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasContent && this.result.content_ != SKBuiltinBuffer_t.DefaultInstance)
				{
					this.result.content_ = SKBuiltinBuffer_t.CreateBuilder(this.result.content_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.content_ = value;
				}
				this.result.hasContent = true;
				return this;
			}
			public ThrowBottleRequest.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = null;
				return this;
			}
			public ThrowBottleRequest.Builder SetStartPos(int value)
			{
				this.PrepareBuilder();
				this.result.hasStartPos = true;
				this.result.startPos_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder ClearStartPos()
			{
				this.PrepareBuilder();
				this.result.hasStartPos = false;
				this.result.startPos_ = 0;
				return this;
			}
			public ThrowBottleRequest.Builder SetTotalLen(int value)
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = true;
				this.result.totalLen_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder ClearTotalLen()
			{
				this.PrepareBuilder();
				this.result.hasTotalLen = false;
				this.result.totalLen_ = 0;
				return this;
			}
			public ThrowBottleRequest.Builder SetClientID(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientID = true;
				this.result.clientID_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder ClearClientID()
			{
				this.PrepareBuilder();
				this.result.hasClientID = false;
				this.result.clientID_ = "";
				return this;
			}
			public ThrowBottleRequest.Builder SetVoiceLength(uint value)
			{
				this.PrepareBuilder();
				this.result.hasVoiceLength = true;
				this.result.voiceLength_ = value;
				return this;
			}
			public ThrowBottleRequest.Builder ClearVoiceLength()
			{
				this.PrepareBuilder();
				this.result.hasVoiceLength = false;
				this.result.voiceLength_ = 0u;
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int MsgTypeFieldNumber = 2;
		public const int BottleTypeFieldNumber = 3;
		public const int ContentFieldNumber = 4;
		public const int StartPosFieldNumber = 5;
		public const int TotalLenFieldNumber = 6;
		public const int ClientIDFieldNumber = 7;
		public const int VoiceLengthFieldNumber = 8;
		private static readonly ThrowBottleRequest defaultInstance;
		private static readonly string[] _throwBottleRequestFieldNames;
		private static readonly uint[] _throwBottleRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasMsgType;
		private int msgType_;
		private bool hasBottleType;
		private int bottleType_;
		private bool hasContent;
		private SKBuiltinBuffer_t content_;
		private bool hasStartPos;
		private int startPos_;
		private bool hasTotalLen;
		private int totalLen_;
		private bool hasClientID;
		private string clientID_ = "";
		private bool hasVoiceLength;
		private uint voiceLength_;
		private int memoizedSerializedSize = -1;
		public static ThrowBottleRequest DefaultInstance
		{
			get
			{
				return ThrowBottleRequest.defaultInstance;
			}
		}
		public override ThrowBottleRequest DefaultInstanceForType
		{
			get
			{
				return ThrowBottleRequest.DefaultInstance;
			}
		}
		protected override ThrowBottleRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public int MsgType
		{
			get
			{
				return this.msgType_;
			}
		}
		public int BottleType
		{
			get
			{
				return this.bottleType_;
			}
		}
		public SKBuiltinBuffer_t Content
		{
			get
			{
				return this.content_ ?? SKBuiltinBuffer_t.DefaultInstance;
			}
		}
		public int StartPos
		{
			get
			{
				return this.startPos_;
			}
		}
		public int TotalLen
		{
			get
			{
				return this.totalLen_;
			}
		}
		public string ClientID
		{
			get
			{
				return this.clientID_;
			}
		}
		public uint VoiceLength
		{
			get
			{
				return this.voiceLength_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasMsgType && this.hasBottleType && this.hasContent && this.hasStartPos && this.hasTotalLen && this.hasVoiceLength && this.BaseRequest.IsInitialized && this.Content.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasMsgType)
				{
					num += CodedOutputStream.ComputeInt32Size(2, this.MsgType);
				}
				if (this.hasBottleType)
				{
					num += CodedOutputStream.ComputeInt32Size(3, this.BottleType);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeMessageSize(4, this.Content);
				}
				if (this.hasStartPos)
				{
					num += CodedOutputStream.ComputeInt32Size(5, this.StartPos);
				}
				if (this.hasTotalLen)
				{
					num += CodedOutputStream.ComputeInt32Size(6, this.TotalLen);
				}
				if (this.hasClientID)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.ClientID);
				}
				if (this.hasVoiceLength)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.VoiceLength);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private ThrowBottleRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] throwBottleRequestFieldNames = ThrowBottleRequest._throwBottleRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, throwBottleRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasMsgType)
			{
				output.WriteInt32(2, throwBottleRequestFieldNames[4], this.MsgType);
			}
			if (this.hasBottleType)
			{
				output.WriteInt32(3, throwBottleRequestFieldNames[1], this.BottleType);
			}
			if (this.hasContent)
			{
				output.WriteMessage(4, throwBottleRequestFieldNames[3], this.Content);
			}
			if (this.hasStartPos)
			{
				output.WriteInt32(5, throwBottleRequestFieldNames[5], this.StartPos);
			}
			if (this.hasTotalLen)
			{
				output.WriteInt32(6, throwBottleRequestFieldNames[6], this.TotalLen);
			}
			if (this.hasClientID)
			{
				output.WriteString(7, throwBottleRequestFieldNames[2], this.ClientID);
			}
			if (this.hasVoiceLength)
			{
				output.WriteUInt32(8, throwBottleRequestFieldNames[7], this.VoiceLength);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasMsgType)
			{
				num ^= this.msgType_.GetHashCode();
			}
			if (this.hasBottleType)
			{
				num ^= this.bottleType_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasStartPos)
			{
				num ^= this.startPos_.GetHashCode();
			}
			if (this.hasTotalLen)
			{
				num ^= this.totalLen_.GetHashCode();
			}
			if (this.hasClientID)
			{
				num ^= this.clientID_.GetHashCode();
			}
			if (this.hasVoiceLength)
			{
				num ^= this.voiceLength_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			ThrowBottleRequest throwBottleRequest = value as ThrowBottleRequest;
			return throwBottleRequest != null && (this.hasBaseRequest == throwBottleRequest.hasBaseRequest && (!this.hasBaseRequest || this.baseRequest_.Equals(throwBottleRequest.baseRequest_))) && (this.hasMsgType == throwBottleRequest.hasMsgType && (!this.hasMsgType || this.msgType_.Equals(throwBottleRequest.msgType_))) && (this.hasBottleType == throwBottleRequest.hasBottleType && (!this.hasBottleType || this.bottleType_.Equals(throwBottleRequest.bottleType_))) && (this.hasContent == throwBottleRequest.hasContent && (!this.hasContent || this.content_.Equals(throwBottleRequest.content_))) && (this.hasStartPos == throwBottleRequest.hasStartPos && (!this.hasStartPos || this.startPos_.Equals(throwBottleRequest.startPos_))) && (this.hasTotalLen == throwBottleRequest.hasTotalLen && (!this.hasTotalLen || this.totalLen_.Equals(throwBottleRequest.totalLen_))) && (this.hasClientID == throwBottleRequest.hasClientID && (!this.hasClientID || this.clientID_.Equals(throwBottleRequest.clientID_))) && (this.hasVoiceLength == throwBottleRequest.hasVoiceLength && (!this.hasVoiceLength || this.voiceLength_.Equals(throwBottleRequest.voiceLength_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("MsgType", this.hasMsgType, this.msgType_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("BottleType", this.hasBottleType, this.bottleType_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("StartPos", this.hasStartPos, this.startPos_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("TotalLen", this.hasTotalLen, this.totalLen_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("ClientID", this.hasClientID, this.clientID_, writer);
			GeneratedMessageLite<ThrowBottleRequest, ThrowBottleRequest.Builder>.PrintField("VoiceLength", this.hasVoiceLength, this.voiceLength_, writer);
		}
		public static ThrowBottleRequest ParseFrom(byte[] data)
		{
			return ThrowBottleRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private ThrowBottleRequest MakeReadOnly()
		{
			return this;
		}
		public static ThrowBottleRequest.Builder CreateBuilder()
		{
			return new ThrowBottleRequest.Builder();
		}
		public override ThrowBottleRequest.Builder ToBuilder()
		{
			return ThrowBottleRequest.CreateBuilder(this);
		}
		public override ThrowBottleRequest.Builder CreateBuilderForType()
		{
			return new ThrowBottleRequest.Builder();
		}
		public static ThrowBottleRequest.Builder CreateBuilder(ThrowBottleRequest prototype)
		{
			return new ThrowBottleRequest.Builder(prototype);
		}
		static ThrowBottleRequest()
		{
			ThrowBottleRequest.defaultInstance = new ThrowBottleRequest().MakeReadOnly();
			ThrowBottleRequest._throwBottleRequestFieldNames = new string[]
			{
				"BaseRequest",
				"BottleType",
				"ClientID",
				"Content",
				"MsgType",
				"StartPos",
				"TotalLen",
				"VoiceLength"
			};
			ThrowBottleRequest._throwBottleRequestFieldTags = new uint[]
			{
				10u,
				24u,
				58u,
				34u,
				16u,
				40u,
				48u,
				64u
			};
			object.ReferenceEquals(micromsg.Proto.ThrowBottleRequest.Descriptor, null);
		}
	}
}
